*** Settings ***
Documentation           通过cli获取maca组件的状态
Resource                ../../test_function/cli/ssh.robot
Resource                ../../test_function/resource.robot
Suite Setup             Open SSH Connection
Suite Teardown          Close SSH Session    ${ssh}

*** Variables ***
${service}              bmc.kepler.maca
${path}                 /bmc/kepler/maca/MicroComponent
${input}                ${BUSCTL_INTROSPECT} ${service} ${path}
${expected_output}      InitCompleted

*** Test Cases ***
Get Maca Status cli
    [Documentation]    通过ssh查询maca组件状态
    [Tags]    Get_Maca_Status_Via_cli

    ${rsp}=    Execute SSH Command    ${ssh}    ${input}
    Should Not Be Empty    ${rsp}    msg=未获取maca组件状态
    Log    maca组件信息: \n${rsp}    console=False
    # Should Contain    ${rsp}    ${expected_output}    msg=未找到maca组件状态

